package start.spring.basic.exception;

public class GatewayException extends RuntimeException {

	private static final long serialVersionUID = -8144176789661532864L;
	
	private String errcode = "gw500";

	public GatewayException() {
		super();
	}
	
	public GatewayException(String errmsg) {
		super(errmsg);
	}
	
	public GatewayException(String errmsg,Throwable cause) {
		super(errmsg,cause);
	}
	
	public GatewayException(String errcode,String errmsg) {
		super(errmsg);
		this.setErrcode(errcode);
	}
	
	public GatewayException(String errcode,String errmsg,Throwable cause) {
		super(errmsg,cause);
		this.setErrcode(errcode);
	}


	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}
}
